<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>ClaraGenomicsAnalysis: claragenomics::UndirectedGraph Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">ClaraGenomicsAnalysis
   &#160;<span id="projectnumber">0.4.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.16 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>claragenomics</b></li><li class="navelem"><a class="el" href="classclaragenomics_1_1UndirectedGraph.html">UndirectedGraph</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classclaragenomics_1_1UndirectedGraph-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">claragenomics::UndirectedGraph Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="classclaragenomics_1_1UndirectedGraph.html" title="UndirectedGraph Object representing an undirected graph structure.">UndirectedGraph</a> Object representing an undirected graph structure.  
 <a href="classclaragenomics_1_1UndirectedGraph.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="graph_8hpp_source.html">graph.hpp</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for claragenomics::UndirectedGraph:</div>
<div class="dyncontent">
<div class="center"><img src="classclaragenomics_1_1UndirectedGraph__inherit__graph.png" border="0" usemap="#claragenomics_1_1UndirectedGraph_inherit__map" alt="Inheritance graph"/></div>
<map name="claragenomics_1_1UndirectedGraph_inherit__map" id="claragenomics_1_1UndirectedGraph_inherit__map">
<area shape="rect" title="UndirectedGraph Object representing an undirected graph structure." alt="" coords="5,80,183,121"/>
<area shape="rect" href="classclaragenomics_1_1Graph.html" title="Object representing a generic graph structure." alt="" coords="19,5,169,32"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<div class="dynheader">
Collaboration diagram for claragenomics::UndirectedGraph:</div>
<div class="dyncontent">
<div class="center"><img src="classclaragenomics_1_1UndirectedGraph__coll__graph.png" border="0" usemap="#claragenomics_1_1UndirectedGraph_coll__map" alt="Collaboration graph"/></div>
<map name="claragenomics_1_1UndirectedGraph_coll__map" id="claragenomics_1_1UndirectedGraph_coll__map">
<area shape="rect" title="UndirectedGraph Object representing an undirected graph structure." alt="" coords="5,80,183,121"/>
<area shape="rect" href="classclaragenomics_1_1Graph.html" title="Object representing a generic graph structure." alt="" coords="19,5,169,32"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a0f9734799fc19b94b0621c956ce5508d"><td class="memItemLeft" align="right" valign="top"><a id="a0f9734799fc19b94b0621c956ce5508d"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classclaragenomics_1_1UndirectedGraph.html#a0f9734799fc19b94b0621c956ce5508d">node_id_t</a> = int32_t</td></tr>
<tr class="memdesc:a0f9734799fc19b94b0621c956ce5508d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Typedef for node ID. <br /></td></tr>
<tr class="separator:a0f9734799fc19b94b0621c956ce5508d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad5388bf7676b6e35a6e62c034e2993b5"><td class="memItemLeft" align="right" valign="top"><a id="ad5388bf7676b6e35a6e62c034e2993b5"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classclaragenomics_1_1UndirectedGraph.html#ad5388bf7676b6e35a6e62c034e2993b5">edge_weight_t</a> = int32_t</td></tr>
<tr class="memdesc:ad5388bf7676b6e35a6e62c034e2993b5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Tpyedef for edge weight. <br /></td></tr>
<tr class="separator:ad5388bf7676b6e35a6e62c034e2993b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3892123fce03f805e54ce0076e6b68dc"><td class="memItemLeft" align="right" valign="top"><a id="a3892123fce03f805e54ce0076e6b68dc"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classclaragenomics_1_1UndirectedGraph.html#a3892123fce03f805e54ce0076e6b68dc">edge_t</a> = std::pair&lt; <a class="el" href="classclaragenomics_1_1Graph.html#a0f9734799fc19b94b0621c956ce5508d">node_id_t</a>, <a class="el" href="classclaragenomics_1_1Graph.html#a0f9734799fc19b94b0621c956ce5508d">node_id_t</a> &gt;</td></tr>
<tr class="memdesc:a3892123fce03f805e54ce0076e6b68dc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Typedef for edge. <br /></td></tr>
<tr class="separator:a3892123fce03f805e54ce0076e6b68dc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_types_classclaragenomics_1_1Graph"><td colspan="2" onclick="javascript:toggleInherit('pub_types_classclaragenomics_1_1Graph')"><img src="closed.png" alt="-"/>&#160;Public Types inherited from <a class="el" href="classclaragenomics_1_1Graph.html">claragenomics::Graph</a></td></tr>
<tr class="memitem:a0f9734799fc19b94b0621c956ce5508d inherit pub_types_classclaragenomics_1_1Graph"><td class="memItemLeft" align="right" valign="top"><a id="a0f9734799fc19b94b0621c956ce5508d"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classclaragenomics_1_1Graph.html#a0f9734799fc19b94b0621c956ce5508d">node_id_t</a> = int32_t</td></tr>
<tr class="memdesc:a0f9734799fc19b94b0621c956ce5508d inherit pub_types_classclaragenomics_1_1Graph"><td class="mdescLeft">&#160;</td><td class="mdescRight">Typedef for node ID. <br /></td></tr>
<tr class="separator:a0f9734799fc19b94b0621c956ce5508d inherit pub_types_classclaragenomics_1_1Graph"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad5388bf7676b6e35a6e62c034e2993b5 inherit pub_types_classclaragenomics_1_1Graph"><td class="memItemLeft" align="right" valign="top"><a id="ad5388bf7676b6e35a6e62c034e2993b5"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classclaragenomics_1_1Graph.html#ad5388bf7676b6e35a6e62c034e2993b5">edge_weight_t</a> = int32_t</td></tr>
<tr class="memdesc:ad5388bf7676b6e35a6e62c034e2993b5 inherit pub_types_classclaragenomics_1_1Graph"><td class="mdescLeft">&#160;</td><td class="mdescRight">Tpyedef for edge weight. <br /></td></tr>
<tr class="separator:ad5388bf7676b6e35a6e62c034e2993b5 inherit pub_types_classclaragenomics_1_1Graph"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3892123fce03f805e54ce0076e6b68dc inherit pub_types_classclaragenomics_1_1Graph"><td class="memItemLeft" align="right" valign="top"><a id="a3892123fce03f805e54ce0076e6b68dc"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classclaragenomics_1_1Graph.html#a3892123fce03f805e54ce0076e6b68dc">edge_t</a> = std::pair&lt; <a class="el" href="classclaragenomics_1_1Graph.html#a0f9734799fc19b94b0621c956ce5508d">node_id_t</a>, <a class="el" href="classclaragenomics_1_1Graph.html#a0f9734799fc19b94b0621c956ce5508d">node_id_t</a> &gt;</td></tr>
<tr class="memdesc:a3892123fce03f805e54ce0076e6b68dc inherit pub_types_classclaragenomics_1_1Graph"><td class="mdescLeft">&#160;</td><td class="mdescRight">Typedef for edge. <br /></td></tr>
<tr class="separator:a3892123fce03f805e54ce0076e6b68dc inherit pub_types_classclaragenomics_1_1Graph"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a47c5ee6b9616ab24222526f4dcd1fb04"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classclaragenomics_1_1UndirectedGraph.html#a47c5ee6b9616ab24222526f4dcd1fb04">add_edge</a> (<a class="el" href="classclaragenomics_1_1Graph.html#a0f9734799fc19b94b0621c956ce5508d">node_id_t</a> node_id_from, <a class="el" href="classclaragenomics_1_1Graph.html#a0f9734799fc19b94b0621c956ce5508d">node_id_t</a> node_id_to, <a class="el" href="classclaragenomics_1_1Graph.html#ad5388bf7676b6e35a6e62c034e2993b5">edge_weight_t</a> weight=0)</td></tr>
<tr class="memdesc:a47c5ee6b9616ab24222526f4dcd1fb04"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add undirected edges to graph.  <a href="classclaragenomics_1_1UndirectedGraph.html#a47c5ee6b9616ab24222526f4dcd1fb04">More...</a><br /></td></tr>
<tr class="separator:a47c5ee6b9616ab24222526f4dcd1fb04"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a64b119c6ca6049b081ddde7db3c87e3f"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classclaragenomics_1_1UndirectedGraph.html#a64b119c6ca6049b081ddde7db3c87e3f">serialize_to_dot</a> () const</td></tr>
<tr class="memdesc:a64b119c6ca6049b081ddde7db3c87e3f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Serialize graph structure to dot format.  <a href="classclaragenomics_1_1UndirectedGraph.html#a64b119c6ca6049b081ddde7db3c87e3f">More...</a><br /></td></tr>
<tr class="separator:a64b119c6ca6049b081ddde7db3c87e3f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classclaragenomics_1_1Graph"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classclaragenomics_1_1Graph')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classclaragenomics_1_1Graph.html">claragenomics::Graph</a></td></tr>
<tr class="memitem:ab52b2707de415931f1990ee338b29eeb inherit pub_methods_classclaragenomics_1_1Graph"><td class="memItemLeft" align="right" valign="top">const std::vector&lt; <a class="el" href="classclaragenomics_1_1Graph.html#a0f9734799fc19b94b0621c956ce5508d">node_id_t</a> &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classclaragenomics_1_1Graph.html#ab52b2707de415931f1990ee338b29eeb">get_adjacent_nodes</a> (<a class="el" href="classclaragenomics_1_1Graph.html#a0f9734799fc19b94b0621c956ce5508d">node_id_t</a> node) const</td></tr>
<tr class="memdesc:ab52b2707de415931f1990ee338b29eeb inherit pub_methods_classclaragenomics_1_1Graph"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get a list of adjacent nodes to a given node.  <a href="classclaragenomics_1_1Graph.html#ab52b2707de415931f1990ee338b29eeb">More...</a><br /></td></tr>
<tr class="separator:ab52b2707de415931f1990ee338b29eeb inherit pub_methods_classclaragenomics_1_1Graph"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1b51bca4b58c9922b375c983415ec0c8 inherit pub_methods_classclaragenomics_1_1Graph"><td class="memItemLeft" align="right" valign="top">const std::vector&lt; <a class="el" href="classclaragenomics_1_1Graph.html#a0f9734799fc19b94b0621c956ce5508d">node_id_t</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classclaragenomics_1_1Graph.html#a1b51bca4b58c9922b375c983415ec0c8">get_node_ids</a> () const</td></tr>
<tr class="memdesc:a1b51bca4b58c9922b375c983415ec0c8 inherit pub_methods_classclaragenomics_1_1Graph"><td class="mdescLeft">&#160;</td><td class="mdescRight">List all node IDs in the graph.  <a href="classclaragenomics_1_1Graph.html#a1b51bca4b58c9922b375c983415ec0c8">More...</a><br /></td></tr>
<tr class="separator:a1b51bca4b58c9922b375c983415ec0c8 inherit pub_methods_classclaragenomics_1_1Graph"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac96335c01273c0dd74d2628e7bf38794 inherit pub_methods_classclaragenomics_1_1Graph"><td class="memItemLeft" align="right" valign="top">const std::vector&lt; std::pair&lt; <a class="el" href="classclaragenomics_1_1Graph.html#a3892123fce03f805e54ce0076e6b68dc">edge_t</a>, <a class="el" href="classclaragenomics_1_1Graph.html#ad5388bf7676b6e35a6e62c034e2993b5">edge_weight_t</a> &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classclaragenomics_1_1Graph.html#ac96335c01273c0dd74d2628e7bf38794">get_edges</a> () const</td></tr>
<tr class="memdesc:ac96335c01273c0dd74d2628e7bf38794 inherit pub_methods_classclaragenomics_1_1Graph"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get a list of all edges in the graph.  <a href="classclaragenomics_1_1Graph.html#ac96335c01273c0dd74d2628e7bf38794">More...</a><br /></td></tr>
<tr class="separator:ac96335c01273c0dd74d2628e7bf38794 inherit pub_methods_classclaragenomics_1_1Graph"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9861d50dbee863befed15eb8daacff3d inherit pub_methods_classclaragenomics_1_1Graph"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classclaragenomics_1_1Graph.html#a9861d50dbee863befed15eb8daacff3d">set_node_label</a> (<a class="el" href="classclaragenomics_1_1Graph.html#a0f9734799fc19b94b0621c956ce5508d">node_id_t</a> node, const std::string &amp;label)</td></tr>
<tr class="memdesc:a9861d50dbee863befed15eb8daacff3d inherit pub_methods_classclaragenomics_1_1Graph"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add string labels to a node ID.  <a href="classclaragenomics_1_1Graph.html#a9861d50dbee863befed15eb8daacff3d">More...</a><br /></td></tr>
<tr class="separator:a9861d50dbee863befed15eb8daacff3d inherit pub_methods_classclaragenomics_1_1Graph"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a47bd2f14a355fbbd801846b0af305389 inherit pub_methods_classclaragenomics_1_1Graph"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classclaragenomics_1_1Graph.html#a47bd2f14a355fbbd801846b0af305389">get_node_label</a> (<a class="el" href="classclaragenomics_1_1Graph.html#a0f9734799fc19b94b0621c956ce5508d">node_id_t</a> node) const</td></tr>
<tr class="memdesc:a47bd2f14a355fbbd801846b0af305389 inherit pub_methods_classclaragenomics_1_1Graph"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the label associated with a node.  <a href="classclaragenomics_1_1Graph.html#a47bd2f14a355fbbd801846b0af305389">More...</a><br /></td></tr>
<tr class="separator:a47bd2f14a355fbbd801846b0af305389 inherit pub_methods_classclaragenomics_1_1Graph"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pro_methods_classclaragenomics_1_1Graph"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classclaragenomics_1_1Graph')"><img src="closed.png" alt="-"/>&#160;Protected Member Functions inherited from <a class="el" href="classclaragenomics_1_1Graph.html">claragenomics::Graph</a></td></tr>
<tr class="memitem:a1df5a4be1fc2f71130436e9f718e85ac inherit pro_methods_classclaragenomics_1_1Graph"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classclaragenomics_1_1Graph.html#a1df5a4be1fc2f71130436e9f718e85ac">directed_edge_exists</a> (<a class="el" href="classclaragenomics_1_1Graph.html#a3892123fce03f805e54ce0076e6b68dc">edge_t</a> edge)</td></tr>
<tr class="memdesc:a1df5a4be1fc2f71130436e9f718e85ac inherit pro_methods_classclaragenomics_1_1Graph"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check if a directed edge exists in the grph.  <a href="classclaragenomics_1_1Graph.html#a1df5a4be1fc2f71130436e9f718e85ac">More...</a><br /></td></tr>
<tr class="separator:a1df5a4be1fc2f71130436e9f718e85ac inherit pro_methods_classclaragenomics_1_1Graph"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0043ec8f35f7491c06915c887d31ea77 inherit pro_methods_classclaragenomics_1_1Graph"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classclaragenomics_1_1Graph.html#a0043ec8f35f7491c06915c887d31ea77">update_adject_nodes</a> (<a class="el" href="classclaragenomics_1_1Graph.html#a3892123fce03f805e54ce0076e6b68dc">edge_t</a> edge)</td></tr>
<tr class="memdesc:a0043ec8f35f7491c06915c887d31ea77 inherit pro_methods_classclaragenomics_1_1Graph"><td class="mdescLeft">&#160;</td><td class="mdescRight">Update the adjacent nodes based on edge information.  <a href="classclaragenomics_1_1Graph.html#a0043ec8f35f7491c06915c887d31ea77">More...</a><br /></td></tr>
<tr class="separator:a0043ec8f35f7491c06915c887d31ea77 inherit pro_methods_classclaragenomics_1_1Graph"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a95ef438f6035c2240bf277645ad27cb9 inherit pro_methods_classclaragenomics_1_1Graph"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classclaragenomics_1_1Graph.html#a95ef438f6035c2240bf277645ad27cb9">node_labels_to_dot</a> (std::ostringstream &amp;dot_str) const</td></tr>
<tr class="memdesc:a95ef438f6035c2240bf277645ad27cb9 inherit pro_methods_classclaragenomics_1_1Graph"><td class="mdescLeft">&#160;</td><td class="mdescRight">Serialize node labels to dot format.  <a href="classclaragenomics_1_1Graph.html#a95ef438f6035c2240bf277645ad27cb9">More...</a><br /></td></tr>
<tr class="separator:a95ef438f6035c2240bf277645ad27cb9 inherit pro_methods_classclaragenomics_1_1Graph"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a88dda0ee0cffa26a188a041593d2fcd5 inherit pro_methods_classclaragenomics_1_1Graph"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classclaragenomics_1_1Graph.html#a88dda0ee0cffa26a188a041593d2fcd5">edges_to_dot</a> (std::ostringstream &amp;dot_str, const std::string &amp;node_separator) const</td></tr>
<tr class="memdesc:a88dda0ee0cffa26a188a041593d2fcd5 inherit pro_methods_classclaragenomics_1_1Graph"><td class="mdescLeft">&#160;</td><td class="mdescRight">Serialize edges to dot format.  <a href="classclaragenomics_1_1Graph.html#a88dda0ee0cffa26a188a041593d2fcd5">More...</a><br /></td></tr>
<tr class="separator:a88dda0ee0cffa26a188a041593d2fcd5 inherit pro_methods_classclaragenomics_1_1Graph"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_attribs_classclaragenomics_1_1Graph"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_classclaragenomics_1_1Graph')"><img src="closed.png" alt="-"/>&#160;Protected Attributes inherited from <a class="el" href="classclaragenomics_1_1Graph.html">claragenomics::Graph</a></td></tr>
<tr class="memitem:a8b53264154b5caed266385a007e33404 inherit pro_attribs_classclaragenomics_1_1Graph"><td class="memItemLeft" align="right" valign="top"><a id="a8b53264154b5caed266385a007e33404"></a>
std::unordered_map&lt; <a class="el" href="classclaragenomics_1_1Graph.html#a0f9734799fc19b94b0621c956ce5508d">node_id_t</a>, std::vector&lt; <a class="el" href="classclaragenomics_1_1Graph.html#a0f9734799fc19b94b0621c956ce5508d">node_id_t</a> &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classclaragenomics_1_1Graph.html#a8b53264154b5caed266385a007e33404">adjacent_nodes_</a></td></tr>
<tr class="memdesc:a8b53264154b5caed266385a007e33404 inherit pro_attribs_classclaragenomics_1_1Graph"><td class="mdescLeft">&#160;</td><td class="mdescRight">List of adjacent nodes per node ID. <br /></td></tr>
<tr class="separator:a8b53264154b5caed266385a007e33404 inherit pro_attribs_classclaragenomics_1_1Graph"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4089c636086324cae1f2a2bde56c8b33 inherit pro_attribs_classclaragenomics_1_1Graph"><td class="memItemLeft" align="right" valign="top"><a id="a4089c636086324cae1f2a2bde56c8b33"></a>
std::unordered_map&lt; <a class="el" href="classclaragenomics_1_1Graph.html#a3892123fce03f805e54ce0076e6b68dc">edge_t</a>, <a class="el" href="classclaragenomics_1_1Graph.html#ad5388bf7676b6e35a6e62c034e2993b5">edge_weight_t</a>, <a class="el" href="structclaragenomics_1_1PairHash.html">PairHash</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classclaragenomics_1_1Graph.html#a4089c636086324cae1f2a2bde56c8b33">edges_</a></td></tr>
<tr class="memdesc:a4089c636086324cae1f2a2bde56c8b33 inherit pro_attribs_classclaragenomics_1_1Graph"><td class="mdescLeft">&#160;</td><td class="mdescRight">All edges in the graph. <br /></td></tr>
<tr class="separator:a4089c636086324cae1f2a2bde56c8b33 inherit pro_attribs_classclaragenomics_1_1Graph"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5da2769d7e5bebd1d74c4899e3aad2c5 inherit pro_attribs_classclaragenomics_1_1Graph"><td class="memItemLeft" align="right" valign="top"><a id="a5da2769d7e5bebd1d74c4899e3aad2c5"></a>
std::unordered_map&lt; <a class="el" href="classclaragenomics_1_1Graph.html#a0f9734799fc19b94b0621c956ce5508d">node_id_t</a>, std::string &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classclaragenomics_1_1Graph.html#a5da2769d7e5bebd1d74c4899e3aad2c5">node_labels_</a></td></tr>
<tr class="memdesc:a5da2769d7e5bebd1d74c4899e3aad2c5 inherit pro_attribs_classclaragenomics_1_1Graph"><td class="mdescLeft">&#160;</td><td class="mdescRight">Label per node. <br /></td></tr>
<tr class="separator:a5da2769d7e5bebd1d74c4899e3aad2c5 inherit pro_attribs_classclaragenomics_1_1Graph"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ada271fc17a3a6e86f5dcc78c4caa729c inherit pro_attribs_classclaragenomics_1_1Graph"><td class="memItemLeft" align="right" valign="top"><a id="ada271fc17a3a6e86f5dcc78c4caa729c"></a>
const std::vector&lt; <a class="el" href="classclaragenomics_1_1Graph.html#a0f9734799fc19b94b0621c956ce5508d">node_id_t</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classclaragenomics_1_1Graph.html#ada271fc17a3a6e86f5dcc78c4caa729c">empty_</a></td></tr>
<tr class="memdesc:ada271fc17a3a6e86f5dcc78c4caa729c inherit pro_attribs_classclaragenomics_1_1Graph"><td class="mdescLeft">&#160;</td><td class="mdescRight">An empty list representing no connectivity. <br /></td></tr>
<tr class="separator:ada271fc17a3a6e86f5dcc78c4caa729c inherit pro_attribs_classclaragenomics_1_1Graph"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p><a class="el" href="classclaragenomics_1_1UndirectedGraph.html" title="UndirectedGraph Object representing an undirected graph structure.">UndirectedGraph</a> Object representing an undirected graph structure. </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a47c5ee6b9616ab24222526f4dcd1fb04"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a47c5ee6b9616ab24222526f4dcd1fb04">&#9670;&nbsp;</a></span>add_edge()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void claragenomics::UndirectedGraph::add_edge </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classclaragenomics_1_1Graph.html#a0f9734799fc19b94b0621c956ce5508d">node_id_t</a>&#160;</td>
          <td class="paramname"><em>node_id_from</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classclaragenomics_1_1Graph.html#a0f9734799fc19b94b0621c956ce5508d">node_id_t</a>&#160;</td>
          <td class="paramname"><em>node_id_to</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classclaragenomics_1_1Graph.html#ad5388bf7676b6e35a6e62c034e2993b5">edge_weight_t</a>&#160;</td>
          <td class="paramname"><em>weight</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Add undirected edges to graph. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">node_id_from</td><td>Source node ID </td></tr>
    <tr><td class="paramname">node_id_to</td><td>Sink node ID </td></tr>
    <tr><td class="paramname">weight</td><td>Edge weight </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a64b119c6ca6049b081ddde7db3c87e3f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a64b119c6ca6049b081ddde7db3c87e3f">&#9670;&nbsp;</a></span>serialize_to_dot()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::string claragenomics::UndirectedGraph::serialize_to_dot </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Serialize graph structure to dot format. </p>
<dl class="section return"><dt>Returns</dt><dd>A string encoding the graph in dot format </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>common/utils/include/claragenomics/utils/<a class="el" href="graph_8hpp_source.html">graph.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.16
</small></address>
</body>
</html>
